﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
   
    <title>CodeIgniter ACI  Submit Success</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<style>
	*{
	margin:0px;
	padding:0px;
	
	}
		body{
			text-align: center;
		}
		
		
		li{
		list-style:none;
		}
		
		
		#border{
			text-align: left; 
			margin-left:auto; 
			margin-right:auto; 
			
		width: 1024px; 

		}
		#border2{
		float:left;		
		box-shadow: 10px 10px 5px #888888;	
 		
		width: 1024px; 
		}
		#header{ 
			margin: 0px; 
			line-height: 150px;
			background: #888888;
		}
		#menu{
		
			background: silver; 
			line-height:50px;
		}
		.MainContent{  			
			margin-left:30px;
			height: 500px;
		}
		 
		 .row{
		 border-bottom:1px dashed #f2f2f2;
		 }
		 rowadmin{
		  font-size:14px;
		  background:#f1f1f1;
		  line-height:40px;
		  }
	</style>
</head>

<body>

<div id="border">
<div id="border2">

	<div id="header"> 
	<h1>CodeIgniter ACI Read</h1>
	</div>
	 
	<div class="MainContent">
	<ul>
	<?php
 
	//成功后返回操作 
	//这个地方那个用 base_url()会自动换为 127.0.0.1 需要设置 ci的config文件为 localhost
 		//$mainpage="http://".$_SERVER["SERVER_NAME"]."/".index_page();//网站首页 

		$mainpage=base_url().index_page();
 		$prepage=$mainpage.$this->uri->slash_segment(1,'leading').$this->uri->slash_segment(2,'both');//上一页
 		$indexpage=$mainpage.$this->uri->slash_segment(1,'both');//首页
 		
		echo "<div  style='width:600;height:600;padding:100; margin:100; '>";
		echo "<h1><li>操作成功 </li></h1><br>";  		 

  		echo "<h3><li>".$prepage."<a href=".$prepage.">返回上一页</a></li>";   
  		echo "<li>".$indexpage."<a href=".$indexpage.">返回首页</a></li> ";
  		echo "<li>".$mainpage."<a href=".$mainpage.">返回网站 首页</a></li></h3>";   
  		//echo "<meta http-equiv='refresh' content='3;URL=".$indexpage."'><li>三秒后返回前页...</li>";

  		echo "</div>";
  		
	?>
	</ul>
	</div>

</div>
</div>
</body>
</html>

